From: Colin Walters Date: Tue, 25 Nov 2014 20:21:11 +0000 (-0500) Subject: tests: Fix u-boot test failure X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~1042 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=038ba3dade7d285167bdb3ae5caa45b27c11bf79;p=ostree.git tests: Fix u-boot test failure This bit needs to be specific to syslinux. --- diff --git a/tests/admin-test.sh b/tests/admin-test.sh index ebb18849..f0e2e643 100755 --- a/tests/admin-test.sh +++ b/tests/admin-test.sh @@ -1,4 +1,3 @@ -#!/bin/bash # # Copyright (C) 2011,2014 Colin Walters # @@ -29,7 +28,9 @@ ostree admin --sysroot=sysroot deploy --karg=root=LABEL=MOO --karg=quiet --os=te ostree admin --sysroot=sysroot status | tee status.txt assert_file_has_content status.txt 'Version: 1.0.10' -assert_file_has_content sysroot/boot/loader/syslinux.cfg 'TestOS 42 1.0.10' +if test -f sysroot/boot/loader/syslinux.cfg; then + assert_file_has_content sysroot/boot/loader/syslinux.cfg 'TestOS 42 1.0.10' +fi echo "ok deploy command"